import { baseRequestClient } from '#/api/request';

export namespace AuthApi {
  export interface RefreshTokenResult {
    data: string;
    status: number;
  }
}
/**
 * 刷新accessToken
 */
export async function refreshTokenApi() {
  return baseRequestClient.post<AuthApi.RefreshTokenResult>('/auth/refresh', {
    withCredentials: true,
  });
}
